package org.shareworth.online_life.action.portal;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionSupport;

@Controller("action.register")
@Scope("prototype")
public class RegisterAction extends ActionSupport {

	private static final long serialVersionUID = 982742182084348190L;

	private String userName;

	private String passWord;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	@Override
	public String execute() throws Exception {
		System.out.println("userName" + userName + " password" + passWord);
		return super.execute();
	}

}
